<T:ViewBase x:Class="WPFExcelReport.TWPZUORD02"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    Background="White"  
                    Loaded="Window_Loaded"
     >
    <T:ViewBase.Resources>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:TIMES100  x:Key="X100"/>
        <ucd:TIMES10  x:Key="X10"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:PreisConverter  x:Key="PreisConverter"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:TextTrimmingConverter  x:Key="Trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>  
    </T:ViewBase.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0">
        <WrapPanel>
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=WPZMANDANT:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwWPZUORD.WPZMANDANT}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=WPZKUNDNR:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwWPZUORD.WPZKUNDNR}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=WPZWERK:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwWPZUORD.WPZWERK}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=WPZABT:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwWPZUORD.WPZABT}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=WPZART:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwWPZUORD.WPZART}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=WPZVAR:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwWPZUORD.WPZVAR}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=WPZDESS:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwWPZUORD.WPZDESS}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=WPZBESCHICH:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwWPZUORD.WPZBESCHICH}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=WPZZUSTAND:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwWPZUORD.WPZZUSTAND}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=WPZLIEFKD:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwWPZUORD.WPZLIEFKD}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=WPZLIEFNR:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwWPZUORD.WPZLIEFNR}" Width="Auto" />
            </Grid> 
        </WrapPanel>
        <WrapPanel Visibility="{Binding IsWPZUORD,Converter={StaticResource ResourceKey=bv}}">
                <ex:TBASE1></ex:TBASE1>
            </WrapPanel>
        </StackPanel>
        <DataGrid  Grid.Row="1"  VerticalAlignment="Top"  
                                   AutoGenerateColumns="False"
                                   EnableRowVirtualization="False"
                                   VerticalScrollBarVisibility="Auto"
                                   HorizontalScrollBarVisibility="Auto"
                                   HeadersVisibility="Column"     
                                   ItemsSource="{Binding vwWPZUORD}"  
                                    IsSynchronizedWithCurrentItem="True"
                                   SelectedItem="{Binding Path=dwWPZUORD, Mode=TwoWay}"
                                   x:Name="dlgVKP"  
                                   RowDetailsVisibilityMode="Visible" Grid.ColumnSpan="2" Margin="0,0.2,0.2,0"
                    >
            <DataGrid.Columns> 
                <DataGridTextColumn x:Name="WPZMANDANT"
                                    Binding="{Binding Path=WPZMANDANT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WPZMANDANT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WPZKUNDNR"
                                    Binding="{Binding Path=WPZKUNDNR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WPZKUNDNR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WPZWERK"
                                    Binding="{Binding Path=WPZWERK, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WPZWERK}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WPZABT"
                                    Binding="{Binding Path=WPZABT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WPZABT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WPZART"
                                    Binding="{Binding Path=WPZART, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WPZART}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WPZVAR"
                                    Binding="{Binding Path=WPZVAR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WPZVAR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WPZDESS"
                                    Binding="{Binding Path=WPZDESS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WPZDESS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WPZBESCHICH"
                                    Binding="{Binding Path=WPZBESCHICH, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WPZBESCHICH}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WPZZUSTAND"
                                    Binding="{Binding Path=WPZZUSTAND, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WPZZUSTAND}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WPZLIEFKD"
                                    Binding="{Binding Path=WPZLIEFKD, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WPZLIEFKD}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WPZLIEFNR"
                                    Binding="{Binding Path=WPZLIEFNR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WPZLIEFNR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WPZPNRKR"
                                    Binding="{Binding Path=WPZPNRKR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WPZPNRKR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WPZPLFDNR"
                                    Binding="{Binding Path=WPZPLFDNR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WPZPLFDNR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WPZAENDZL"
                                    Binding="{Binding Path=WPZAENDZL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WPZAENDZL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WPZAENDBEN"
                                    Binding="{Binding Path=WPZAENDBEN, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WPZAENDBEN}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WPZAENDDAT"
                                    Binding="{Binding Path=WPZAENDDAT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WPZAENDDAT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WPZNEUBEN"
                                    Binding="{Binding Path=WPZNEUBEN, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WPZNEUBEN}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WPZNEUDAT"
                                    Binding="{Binding Path=WPZNEUDAT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WPZNEUDAT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WPZSTUFE"
                                    Binding="{Binding Path=WPZSTUFE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WPZSTUFE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WPZGDATINV"
                                    Binding="{Binding Path=WPZGDATINV, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WPZGDATINV}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WPZGDATVON"
                                    Binding="{Binding Path=WPZGDATVON, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WPZGDATVON}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WPZGDATBIS"
                                    Binding="{Binding Path=WPZGDATBIS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WPZGDATBIS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WPZDATINT"
                                    Binding="{Binding Path=WPZDATINT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WPZDATINT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WPZWEITERE"
                                    Binding="{Binding Path=WPZWEITERE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WPZWEITERE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WPZGRUPPE1"
                                    Binding="{Binding Path=WPZGRUPPE1, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WPZGRUPPE1}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WPZGRUPPE2"
                                    Binding="{Binding Path=WPZGRUPPE2, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WPZGRUPPE2}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WPZGRUPPE3"
                                    Binding="{Binding Path=WPZGRUPPE3, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WPZGRUPPE3}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WPZGRUPPE4"
                                    Binding="{Binding Path=WPZGRUPPE4, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WPZGRUPPE4}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WPZGRUPPE5"
                                    Binding="{Binding Path=WPZGRUPPE5, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WPZGRUPPE5}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WPZGRUPPE6"
                                    Binding="{Binding Path=WPZGRUPPE6, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WPZGRUPPE6}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WPZGRUPPE7"
                                    Binding="{Binding Path=WPZGRUPPE7, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WPZGRUPPE7}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WPZGRUPPE8"
                                    Binding="{Binding Path=WPZGRUPPE8, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WPZGRUPPE8}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WPZGRUPPE9"
                                    Binding="{Binding Path=WPZGRUPPE9, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WPZGRUPPE9}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WPZGRUPPE10"
                                    Binding="{Binding Path=WPZGRUPPE10, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WPZGRUPPE10}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WPZRPREIS1"
                                    Binding="{Binding Path=WPZRPREIS1, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WPZRPREIS1}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WPZRPREIS2"
                                    Binding="{Binding Path=WPZRPREIS2, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WPZRPREIS2}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WPZRPREIS3"
                                    Binding="{Binding Path=WPZRPREIS3, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WPZRPREIS3}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WPZRPREIS4"
                                    Binding="{Binding Path=WPZRPREIS4, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WPZRPREIS4}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WPZRPREIS5"
                                    Binding="{Binding Path=WPZRPREIS5, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WPZRPREIS5}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WPZRPREIS6"
                                    Binding="{Binding Path=WPZRPREIS6, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WPZRPREIS6}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WPZRPREIS7"
                                    Binding="{Binding Path=WPZRPREIS7, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WPZRPREIS7}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WPZRPREIS8"
                                    Binding="{Binding Path=WPZRPREIS8, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WPZRPREIS8}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WPZRPREIS9"
                                    Binding="{Binding Path=WPZRPREIS9, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WPZRPREIS9}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WPZRPREIS10"
                                    Binding="{Binding Path=WPZRPREIS10, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WPZRPREIS10}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WPZPRPR"
                                    Binding="{Binding Path=WPZPRPR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WPZPRPR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WPZTEILQUAL"
                                    Binding="{Binding Path=WPZTEILQUAL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WPZTEILQUAL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="WPZFILLER"
                                    Binding="{Binding Path=WPZFILLER, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=WPZFILLER}}"
                                    Width="Auto" />
            </DataGrid.Columns>
        </DataGrid  >
    </Grid>
</T:ViewBase> 
 
